package cn.woblog.recyclerviewsample;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;


public class MainActivity extends AppCompatActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
  }

  public void basicUse(View view) {
startActivity(new Intent(this,BasicUseActivity.class));
  }

  public void horizontalUse(View view) {
startActivity(new Intent(this,HorizontalActivity.class));
  }

  public void gridUse(View view) {
    startActivity(new Intent(this,GridActivity.class));
  }

  public void gridUse2(View view) {
    startActivity(new Intent(this,GridView2Activity.class));
  }
  public void waterfallFlow(View view) {
    startActivity(new Intent(this,WaterfallFlowActivity.class));
  }

  public void useCardView(View view) {
    startActivity(new Intent(this, CardViewActivity.class));
  }

  public void useBaseRecyclerViewAdapter(View view) {
    startActivity(new Intent(this, UseBaseRecyclerViewAdapterActivity.class));
  }

  public void listDivider(View view) {
    startActivity(new Intent(this, ListDividerActivity.class));
  }

  public void gridDivider(View view) {
    startActivity(new Intent(this, GridDivider2Activity.class));
  }

  public void itemAnimation(View view) {
    startActivity(new Intent(this, ItemAnimationActivity.class));
  }

  /**
   * 动画框架
   */
  public void itemAnimation1(View view) {
    startActivity(new Intent(this, AnimationFrameworkActivity.class));
  }

  /**
   * 动画框架 adapter
   */
  public void itemAnimation2(View view) {
    startActivity(new Intent(this, AnimationFrameworkActivity1.class));
  }

  /**
   * 使用动画框架，自定义右边进入动画
   */
  public void itemAnimation3(View view) {
    startActivity(new Intent(this, AnimationFrameworkActivity2.class));
  }

  /**
   * 扩展动画框架，自定义adapte从右边进入
   */
  public void itemAnimation4(View view) {
    startActivity(new Intent(this, AnimationFrameworkActivity3.class));
  }

  /**
   * 通过包装adapter实现添加header,footer
   */
  public void wrapperHeaderView(View view) {
//    startActivity(new Intent(this, ListHeaderFooterActivity.class));
    startActivity(new Intent(this, HeaderFooterActivity1.class));
  }

  public void swipeDeleteItem(View view) {
    startActivity(new Intent(this, SwipeRecyclerViewActivity.class));
  }

  public void swipeItemMenu(View view) {
    startActivity(new Intent(this, SwipeMenuActivity.class));
  }
}
